All Questions
19 questions
0votes
0answers
126views
Starting chromedriver from rails app gives unable to connect to /usr/bin/chromedriver 127.0.0.1:9515
I've been debugging this for quite some time and I don't know what else I should do to fix this. Long story short: I have a rails app that needs to launch chromedriver to navigate to a specific ...
0votes
0answers
415views
How to set `(prefers-reduced-motion: reduce)` to chromedriver from Capybara?
I would like to emulate the setting prefers-reduced-motion: reduce available in CSS/JS but with chromedriver/capybara. It's a Ruby on Rails app with minitest tests. Edit: I tried: setup do page....
1vote
0answers
109views
Download a file using Watir (Selenium) gem with Browserless chrome (docker chrome instance)
I'm trying to use browserless chrome docker instance to create a headless instance of chrome and download some files. So far using Watir integration on ruby it's very straight forward, but when I use ...
0votes
0answers
549views
Chrome on build server not supported by current selenium-devtools
I'm using the Headless Chrome Webdriver, and finding my builds suddenly breaking on the build service I'm using. It's happened before, but I think it was fixed by upgrading selenium-devtools. It seems ...
0votes
1answer
104views
`connect_until_stable' error when trying to use selenium on Heroku RoR
I'm trying to run a file on Heroku that has selenium. However, I get the following error. /app/vendor/bundle/ruby/3.1.0/gems/selenium-webdriver-4.7.1/lib/selenium/webdriver/common/service_manager.rb:...
0votes
1answer
323views
Capybara don't replace default value of input
I have a pretty simple user scaffold pages and some tests on them. it 'update' do visit '/users/new' fill_in 'user[login]', with: 'login' fill_in 'user[password]', with: 'password' ...
0votes
1answer
665views
Error with headless chrome driver unable to click an anchor element
I'm trying to test my pagination feature with rspec, capybara, selenium, and chrome headless driver. I keep running into this error: Failures: 1) Paginations user clicks on next button Failure/...
1vote
2answers
1kviews
Error while using Chromedriver in Ruby on Rails
I need to test a project with capybara, selenium webdriver and chromedriver-helper, but I always get the following error message. Selenium::WebDriver::Error::SessionNotCreatedError: session not ...
0votes
2answers
963views
Ruby - Selenium Webdriver - no such element: Unable to locate element:
I had written a selenium webdriver code in ruby for testing the Razorpay payment page. It works until clicking the button. After that a modal window opens up in AJAX call. The code i written is ...
1vote
1answer
101views
How to change watir chrome pref default_directory to amazon s3?
storage.yml service: Disk root: <%= Rails.root.join("tmp/storage") %> local: service: Disk root: <%= Rails.root.join("storage") %> amazon: service: S3 access_key_id: <%= ...
0votes
1answer
1kviews
How can I keep-alive the watir(chrome-driver) longer?
I have a long-running scraping work on selenium(Ruby Watir). But after 60 minutes I get this error : Net::ReadTimeout: Net::ReadTimeout with #<TCPSocket:(closed)> My code : args = %w[...
11votes
3answers
9kviews
Rails: Capyabra / Selenium Chrome-Driver Settings
I have my Rails-App set up with Capybara. Tests are working fine but I'm getting this error: 2019-05-03 14:51:58 WARN Selenium [DEPRECATION] Selenium::WebDriver::Chrome#driver_path= is deprecated. ...
1vote
0answers
273views
Rails: When does chromedriver-helper fail to be executed?
I asked this question two days ago, and unfortunately, I've not figured out a solution to it yet. So, does anyone know when does chromedriver-helper fail to be executed? Here's the error, btw... H:\...
5votes
2answers
6kviews
Setting default download directory and headless chrome
I have a rails app, and am running capybara & selenium, and using chrome for end-to-end testing. I want to set the default download directory while running chrome headless. Here's how I have it ...
-1votes
1answer
393views
Web browser not opening using Watir
I'm trying to open my browser using Watir with Ruby. I was able to run my script and open the browser once. Now I'm getting the error: #<Watir::Browser:0x586947ae595497d2 url="data:," title=""> ...